<?php
if(isset($_GET['id'])){
    $man = $Bus->Manufacture->getItemById($_GET['id']);
    if($man){
        //Xóa trong database
        $Bus->Manufacture->deleteItemWithId($_GET['id']);
        //Xóa file
        unlink($man->manufactures_logo);
        $url = url('admin','mans-manager');
        redirect($url);  
    }
    
}else{
    $url = url('errors','404');
    redirect($url);
}
?>